package com.jiyun.model.day15;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Transient;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author yangYingJie
 * @Date 2023/8/14 17：05
 **/
@Data
@ToString
public class Trainee {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private Integer num;
    private Integer plan;
    @TableField(value = "start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date startTime;
    @TableField(value = "end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endTime;
    private Integer sort;
    private Integer status;
    private String img;
    private String remark;
    private String mark;
    @TableField(exist = false)
    @Transient
    private String ids;
    @TableField(exist = false)
    @Transient
    private String tid;
}
